﻿
using System.Collections.Generic;
using System.Data;

namespace HandleSign.Models
{
    public class TaskNumModel
    {
        public int taskNumType { get; set; }  // 0,正常taskNum ； 1，调课taskNum
        public int ClassTimeNum { get; set; }
        //public string startTime { get; set; }
        public string taskNumId { get; set; }
        public string ClassEndTime { get; set; }
        public string classId { get; set; }  // 要改为List
        public List<SignEven> seList { get; set; }
        public string groupId { get; set; }

        // public TaskNumModel(string taskNumId,string finistTime,int taskNumType)
        public TaskNumModel(string classId, string taskNumId, int ClassTimeNum, int taskNumType,string ClassEndTime,string groupId)
        {
            this.taskNumType = 0;
            this.taskNumType = taskNumType;
            //this.startTime = startTime;
            seList = new List<SignEven>();
            this.taskNumId = taskNumId;
            this.classId = classId;
            this.ClassEndTime = ClassEndTime;
            this.ClassTimeNum = ClassTimeNum;
            this.groupId = groupId;
        }



        public string tostring() {


            return "  taskNumId:  " + taskNumId +
                "  ClassTimeNum: " + ClassTimeNum +
                "  classId: " + classId +
                "ClassEndTime : " + ClassEndTime;

        }

    }

    /// <summary>
    /// 签到事件
    /// </summary>
    public class SignEven
    {
        public int EvenId { get; set; } //cidychou
        public string  EventNum { get; set; } 
        //2：事件已结束（不符合条件状态）
        //1：事件已结束（符合条件状态）
        //0：事件未结束（等待状态）（默认）
        public int EvenStatus { get; set; }
        public List<SignTimeModels> Stlist { get; set; }
        //public int RoomID { get; set; }
        public string Rctime { get; set; }
       // public string ClassId { get; set; }
       // public string ClassSwitchId { get; set; }  //new 
        public string ClassSwitchETime { get; set; }


        public SignEven()
        {
            EvenStatus = 0;
            Stlist = new List<SignTimeModels>();
        }
    }

    public class SignTimeModels
    {
        public SignTimeModels()
        {
            this.scanStatus = 4;
            this.SsidList = new List<string>();
        }
        
        public int userid { get; set; }
        public int scanStatus { get; set; }
        public string ScanTime { get; set; }
        public List<string> SsidList { get; set; }
       // public string SsidScan { get; set; }
    }



    public class tasknumclass
    {
        public int tasknum { get; set; }
        public DataTable data { get; set; }
    }

    public class Termenal
    {
        public string termenal { get; set; }
        public int count { get; set; }
    }


    public class ClassSwitchModel {

        public string classId { get; set; }
        public string classSwitchId { get; set; }

    }


}